package org.linlinjava.litemall.db.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.linlinjava.litemall.db.models.Order;
import org.linlinjava.litemall.db.vo.OrderVo;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface OrderMapper extends BaseMapper<Order> {
    IPage<Map> getOrderIds(Page<?> page, @Param("query") String query);
    List<OrderVo> getOrderList(@Param("query") String query);
}